/*
 * DeliveryInfo.java
 *
 * Created on April 15, 2007, 9:20 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package usyd.comp5348;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author david
 */
public class DeliveryInfo implements Serializable {
    public static final int UNDEFINED = -1;
    
    private int id;             // unique identifier for this delivery request
    private int orderId;        // which order
    private String warehouse;	// warehouse handling this order
    private String shop;	// shop handling this order
    private Date deliveryDate;	// when order was shipped
    private int status;	        // status of delivery
    
    public DeliveryInfo(int orderId, String warehouse, Date deliveryDate, int status, String shop) {
        this(UNDEFINED, orderId, warehouse, deliveryDate, status, shop);
    }
    
    public DeliveryInfo(int id, int orderId, String warehouse, Date deliveryDate, int status, String shop) {
        this.setId(id);
        this.setOrderId(orderId);
        this.setWarehouse(warehouse);
        this.setDeliveryDate(deliveryDate);
        this.setStatus(status);
        this.setShop(shop);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(String warehouse) {
        this.warehouse = warehouse;
    }
    
    public String getShop() {
        return shop;
    }
    
    public void setShop(String shop) {
        this.shop = shop;
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
